﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace housingsafety.server.Entities.DataModels
{
    [Table("risk_census_yhpc_upld_file")]
    public partial class RiskCensusYhpcUpldFile : Repository.IEntity
    {
        [Key]
        [Column("id")]
        [StringLength(50)]
        public string Id { get; set; }
        [Column("file_name")]
        [StringLength(100)]
        public string FileName { get; set; }
        [Column("file_path")]
        [StringLength(255)]
        public string FilePath { get; set; }
        [Column("group_id")]
        [StringLength(50)]
        public string GroupId { get; set; }
        [Column("extension")]
        [StringLength(10)]
        public string Extension { get; set; }
        [Column("task_id")]
        [StringLength(50)]
        public string TaskId { get; set; }
        [Column("thumb_path")]
        [StringLength(255)]
        public string ThumbPath { get; set; }
        [Column("size")]
        public long? Size { get; set; }
        [Column("pac")]
        [StringLength(50)]
        public string Pac { get; set; }
        [Column("crsj", TypeName = "timestamp(6) without time zone")]
        public DateTime? Crsj { get; set; }
        [Required]
        [Column("create_by")]
        [StringLength(50)]
        public string CreateBy { get; set; }
        [Column("create_on", TypeName = "timestamp(6) without time zone")]
        public DateTime CreateOn { get; set; }
        [Column("create_ip")]
        [StringLength(20)]
        public string CreateIp { get; set; }
        [Column("modified_by")]
        [StringLength(50)]
        public string ModifiedBy { get; set; }
        [Column("modified_on", TypeName = "timestamp(6) without time zone")]
        public DateTime? ModifiedOn { get; set; }
        [Column("modified_ip")]
        [StringLength(20)]
        public string ModifiedIp { get; set; }
        [Column("is_delete")]
        public short? IsDelete { get; set; }
        [Column("delete_by")]
        [StringLength(50)]
        public string DeleteBy { get; set; }
        [Column("delete_on", TypeName = "timestamp(6) without time zone")]
        public DateTime? DeleteOn { get; set; }
        [Column("delete_ip")]
        [StringLength(20)]
        public string DeleteIp { get; set; }
    }
}
